package source

import "save-kindle/entity"

type BookInfo struct {
	// 站点
	WebSite  string
	BookId   string
	BookName string
}

func (book BookInfo) GetBookInfo() BookInfo {
	return book
}

type Book interface {
	GetBookInfo() BookInfo
	Catalog
	Article
}

type Catalog interface {
	// GetCatalog 获取文章目录列表
	GetCatalog() ([]entity.Article, error)
}

type Article interface {
	// GetArticleContent 获取文章内容
	GetArticleContent(article entity.Article) (entity.Article, error)
}
